﻿@model CompanyEditModel
@{
    if (Model == null || Model.Id == 0)
    {
        ViewBag.Title = "新增备案机构";
    }
    else
    { ViewBag.Title = "修改备案机构"; }
}
@section JS
{
    <script src="@Url.Content("~/Scripts/Company.js")" type="text/javascript"></script>
}
@section BodyNav{
    > @Html.ActionLink("备案机构列表", "List", "Company") > 新增备案机构
}
@using (Html.BeginForm())
{
    <table class="edit">
        <tr>
            <th width="150">
                @Html.LabelFor(m => m.Name)
            </th>
            <td width="300">
                @if (Model != null && Model.Id > 0)
                {
                    @Html.DisplayFor(t => t.Name)
                    @Html.HiddenFor(m => m.Name)
                }
                else
                {
                    @Html.EditorFor(m => m.Name)
                    @Html.ValidationMessageFor(m => m.Name)
                }
            </td>
        </tr>
        <tr>
            <th>
                @Html.LabelFor(m => m.Address)
            </th>
            <td>@Html.EditorFor(m => m.Address)@Html.ValidationMessageFor(m => m.Address)
            </td>
        </tr>
        <tr>
            <th>
                @Html.LabelFor(m => m.Legal)
            </th>
            <td>@Html.EditorFor(m => m.Legal)@Html.ValidationMessageFor(m => m.Legal)
            </td>
        </tr>
        <tr>
            <th>
                @Html.LabelFor(m => m.PhoneOfLegal)
            </th>
            <td>@Html.EditorFor(m => m.PhoneOfLegal)@Html.ValidationMessageFor(m => m.PhoneOfLegal)
            </td>
        </tr>
        <tr>
            <th>
                @Html.LabelFor(m => m.Contactor)
            </th>
            <td>@Html.EditorFor(m => m.Contactor)@Html.ValidationMessageFor(m => m.Contactor)
            </td>
        </tr>
        <tr>
            <th>
                @Html.LabelFor(m => m.PhoneOfContactor)
            </th>
            <td>@Html.EditorFor(m => m.PhoneOfContactor)@Html.ValidationMessageFor(m => m.PhoneOfContactor)
            </td>
        </tr>
        <tr>
            <th>
                @Html.LabelFor(m => m.CanProduct)
            </th>
            <td>@Html.EditorFor(m => m.CanProduct)
            </td>
        </tr>
        <tr>
            <th>
                @Html.LabelFor(m => m.ProductNO)
            </th>
            <td>@Html.EditorFor(m => m.ProductNO)@Html.ValidationMessageFor(m => m.ProductNO)
            </td>
        </tr>
        <tr>
            <th>
                @Html.LabelFor(m => m.CanInstall)
            </th>
            <td>@Html.EditorFor(m => m.CanInstall)
            </td>
        </tr>
        <tr>
            <th>
                @Html.LabelFor(m => m.InstallNO)
            </th>
            <td>@Html.EditorFor(m => m.InstallNO)@Html.ValidationMessageFor(m => m.InstallNO)
            </td>
        </tr>
        <tr>
            <th>
                @Html.LabelFor(m => m.CanLend)
            </th>
            <td>@Html.EditorFor(m => m.CanLend)
            </td>
        </tr>
        <tr>
            <th>
                @Html.LabelFor(m => m.LendNO)
            </th>
            <td>@Html.EditorFor(m => m.LendNO)@Html.ValidationMessageFor(m => m.LendNO)
            </td>
        </tr>
        <tr>
            <th>
                @Html.LabelFor(m => m.Comment)
            </th>
            <td>@Html.EditorFor(m => m.Comment)
            </td>
        </tr>
        <tr>
            <td colspan="2">
                @if (Model != null && Model.Id > 0)
                {
                    @Html.HiddenFor(m => m.Id)
                }
                <input type="submit" value="保存" class="btnBtn" />
                <input type="button" value="返回列表" onclick="history.back(-1)" class="btnBtn" />
            </td>
        </tr>
    </table>
}
<div class="info">
    <h2>
        机构备案操作说明</h2>
    <ol>
        <li>严格按照报备单位所填写《山西省建筑起重机械备案登记表》进行录入。</li>
        <li>须对所备案设备的资料资料进行审核后再进行备案操作。</li>
        <li>产权单位应为已备案机构中有租赁资质的企业，如果下来菜单中没有所填单位，请先新增机构备案。</li>
        <li>请准确录入档案所在的档案柜和档案盒位置，以便日后查找。</li>
    </ol>
</div>
